package com.example.his.api.mis.controller;

import com.example.his.api.common.R;
import com.example.his.api.mis.service.DeptService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author huixh
 */
@RestController
@RequestMapping("/mis/dept")
public class DeptController {

    @Resource
    private DeptService deptService;
    @GetMapping("/searchAllDept")
    public R searchAllDept()
    {
        return R.resultOk().put("list", deptService.searchAllDept());
    }
}
